<div style="line-height: 40px; color: red; padding: 5px 5px 0px 10px;">只显示最近400条相关记录</div>

<div style="padding: 10px;">
<table class="am-table am-table-striped am-table-hover center-table">
  <thead>
  <tr>
    <th width="140px">时间</th>
    <th width="100px">金额</th>
    <th>摘要</th>
    <th width="60">结果</th>
  </tr>
  </thead>
  <tbody>
  </tbody>
</table>
</div>
<style type="text/css">
#bet td {
    vertical-align: middle;
    line-height: 20px;
}
</style>

<script>
    // 存款记录
    startLoading();
    CMD.query_account_log2({
        owner: "",
        type: "withdraw",
        pageSize: 400,
    }, function(r) {
        stopLoading();
        fillLog(r.list);
    });

    function fillLog(list) {
        var table = $(".center-table tbody");
        table.empty();

        for (var i in list) {
            var d = list[i];
            var tr = $("<tr></tr>");
            tr.append("<td>" + d.start.substring(5) + '</td>');
            tr.append("<td>" + (d.amount/100).toFixed(2) + "</td>");
            tr.append("<td>" + (d.memo || '') + '开户名:' + (context.user.user.name || '') + "</td>");
            if (d.state == 0) tr.append("<td>待审核</td>");
            else if (d.state == 1) tr.append("<td>完成</td>");
            else if (d.state == 2) tr.append("<td>撤销</td>");
            table.append(tr);
        }
    }
</script>